using System;
using System.Collections.Generic;
using System.Text;
using iTunesLib;
using Rapier.Kodachi.Shared;
using System.Drawing;

namespace Rapier.Kodachi.iTunes.Actions
{
    public class TrackPrevious : iTunesActionBase
    {
        #region Constructor
        public TrackPrevious(Plugin plugin)
            : base(plugin, "Rapier.Kodachi.iTunes.TrackPrevious", "Previous Track", "Skip to the previous track.")
        {
           GetImage = delegate()
           {
              return previousImage;
           };
        }
        #endregion

        #region Action Members
        public override void Execute(Item[] directItems, Item[] indirectItems)
        {
            if (base.IsItunesRunning())
                itunes.PreviousTrack();
        }
        #endregion
    }
}
